package rdw.robot;

/**
 * KeyStroke holds a character, keycode and the associated modifier key
 * to produce the keystroke. It us a container used by KeyMapping.
 */
public class KeyStroke
{
	private char m_c;
	private int m_keyCode;
	private int m_modifierCode;
	
	public KeyStroke(char c, int keyCode, int modifierCode)
	{
		m_c = c;
		m_keyCode = keyCode;
		m_modifierCode = modifierCode;
	}
	
	public int getKeyCode()
	{
		return m_keyCode;
	}
	
	public int getModifierKeyCode()
	{
		return m_modifierCode;
	}
	
	public char getChar()
	{
		return m_c;
	}
}
